<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>case.html</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="jquery-3.1.0.js"></script>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript">
	
		$(function(){
				//绑定事件
			$("#a").click(function(){
				alert("a被点击")
			})	
			//解绑事件
			$("#b").click(function(){
				$("#a").unbind("click");
			})	
		})
	</script>
  </head>
  <body>
  	<input id="a" type="button" value="点击">
	<input id="b" type="button" value="清除事件">
  	  
  </body>
</html>
